package com.jingxuan.dto.request;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class ProductsWeightSearchRequest {

    @NotBlank(message = "关键字不能为空")
    private String keyword;

    private Integer platformId = 1;

    @Min(value = 1, message = "页码必须大于等于1")
    private Integer page = 1;

    @Min(value = 1, message = "分页大小必须大于等于1")
    private Integer pageSize = 20;

    // 权重配置（总和应为100）
    @Min(value = 0, message = "价格权重不能为负数")
    private Double priceWeight = 25.0;

    @Min(value = 0, message = "口碑权重不能为负数")
    private Double reputationWeight = 35.0;

    @Min(value = 0, message = "热度权重不能为负数")
    private Double heatWeight = 25.0;

    @Min(value = 0, message = "时效权重不能为负数")
    private Double timelinessWeight = 15.0;
}